package com.piccolo.wrapper.client.component;

import com.piccolo.wrapper.client.component.Overlay.PImageOverlay;

/**
 * @author Maria Patrickson
 * @version 1.0
 */
public class PImage extends PNode 
{
	/**
	 * Creates a new PImage using the specified image URL. 
	 * @param imageURL
	 */
	public PImage(String imageURL)
	{
		this.overlay = PImageOverlay.create(imageURL);
	}

	/**
	 * Creates a new PImage using the specified image URL and boundaries. 
	 * @param imageURL
	 * @param bounds
	 */
	public PImage(String imageURL, PBounds bounds)
	{
		this.overlay = PImageOverlay.create(bounds, imageURL);
	}
}
